﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using BaseData.HelperEzui;
using BaseData.Models;
using BaseLib.Helper;

namespace BaseData.Exts
{
    [NotMapped]
    public class Web_Base_Account_Members_Exts_DataGridTrees<T> : Web_Base_Accounts_Ext_Base
    {
        public Web_Base_Account_Members_Exts_DataGridTrees()
        {
            this.id = 0;
            this.text = string.Empty;
            this.state = Enums.TreeStat.Open.ToString().ToLower();
            this.total = 0;
            this.count = 0;
            this.score = 0;
            this.msg = string.Empty;
            this.rows = new List<Web_Base_Account_Members_Exts_DataGridTrees<T>>();
            this.children = new List<Web_Base_Account_Members_Exts_DataGridTrees<T>>();
            this.attributes = new Attributes { key = 0, keys = string.Empty, value = 0, values = string.Empty, };
        }
        public int id { get; set; }
        public string text { get; set; }
        public string state { get; set; }
        public int total { get; set; }
        public int count { get; set; }
        public int score { get; set; }
        public string msg { get; set; }
        public Attributes attributes { get; set; }
        public Nullable<int> ParentId { get; set; }
        public Nullable<int> SortId { get; set; }
        public string Name { get; set; }
        public string Pass { get; set; }
        public DateTime DateTimes { get; set; }
        public List<Web_Base_Account_Members_Exts_DataGridTrees<T>> children { get; set; }
        public List<Web_Base_Account_Members_Exts_DataGridTrees<T>> rows { get; set; }
    }
}
